package com.cloudkinto.service.user.vo;

import com.cloudkinto.common.utils.StringsUtil;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author zhangyy
 * @date 2020/4/18 17:13
 * @description:
 */
@Data
public class UserListPageRes {

    private Long id;
    /**
     * 账号
     */
    private String userAccount;

    /**
     * 用户名
     */
    private String userName;

    private String userMail;

    private String roleName;

    /**
     * 电话
     */
    @NotBlank(message = "pls.input.phone")
    private String userPhone;

    private String companyCode;

    private Integer userStatus;
    private String userStatusName;

    private Integer userType;
    private String userTypeName;

    public String getUserTypeName() {
        return StringsUtil.createI18Message(userTypeName);
    }

    public String getUserStatusName() {
        return StringsUtil.createI18Message(userStatusName);
    }
}
